import request from "@/utils/request";
// 获取品牌列表
export function getTrademark(page, limit) {
  return request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: "get",
  });
}
// 添加品牌
export function addTrademark(logoUrl, tmName) {
  return request({
    url: "/admin/product/baseTrademark/save",
    method: "post",
    data: {
      logoUrl,
      tmName,
    },
  });
}
// 删除品牌
export function delateTrademark(id) {
  return request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: "delete",
  });
}
// 修改品牌
export function updateTrademark(data) {
  return request({
    url: "/admin/product/baseTrademark/update",
    method: "put",
    data
  });
}

